import request from '@/utils/request'

// 标签：获取标签列表
export const labelGetListService = (params) =>
  request.get('/label/scan/list', {
    params
  })

// 标签：获取标签数量
export const labelCountService = (params) =>
  request.get('/label/count', {
    params
  })

// 标签：添加标签
// 注意：data需要是一个formData格式的对象
export const labelPublishService = (data) => request.post('/label/save', data)

// 标签：获取标签详情
export const labelGetDetailService = (id) => request.get('/label/' + id)

// 标签：编辑标签接口
export const labelEditService = (data) => request.put('/label/update', data)

// 标签：删除标签接口
export const labelDelService = (id) => request.delete('/label/delete/' + id)
